package com.bw.a2207a.view

import android.os.Bundle
import android.widget.ImageView
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.alibaba.android.arouter.facade.annotation.Route
import com.bw.a2207a.R
import com.bw.a2207a.util.GlideUtil

@Route(path = "/main/PayResultActivity")

class PayResultActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_pay_result)
        val image = findViewById<ImageView>(R.id.iv)
        val desc = findViewById<TextView>(R.id.tv_desc)
        val price = findViewById<TextView>(R.id.tv_price)
        intent.getStringExtra("url")?.let { GlideUtil.loadImg(this, it, image) }
        desc.text = intent.getStringExtra("desc")
        price.text = "支付金额：${intent.getIntExtra("price", 0)!!}"
    }
}